package com.example.lab;

import static org.junit.Assert.*;

import org.junit.Test;

public class equivalent {
    // triOut is output from the routine:
    //    Triang = 1 if triangle is scalene
    //    Triang = 2 if triangle is isosceles
    //    Triang = 3 if triangle is equilateral
    //    Triang = 4 if not a triangle
    trityp tri = new trityp();
    @Test
    public void triang() {
        assertEquals(1,tri.Triang(2,3,4));
        assertEquals(2,tri.Triang(2,2,3));
        assertEquals(3,tri.Triang(3,3,3));
        assertEquals(4,tri.Triang(1,2,3));
    }
}